<%--
  Created by IntelliJ IDEA.
  User: Lee
  Date: 2022/10/10
  Time: 10:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%
    String userName=request.getParameter("username");
    String password=request.getParameter("password");
    if(userName.equals("admin")&&password.equals("123")){
        session.setAttribute("username",userName);
        response.sendRedirect("index.jsp");
    }else
    {
        out.print("用户名或密码错误");
    }
%>
<body>

</body>
</html>
